package chixing.day07.inherited;

public class ProductTest {
    public static void main(String[] args) {
        Product product1 = new Product();
        product1.setProName("手机壳");
        product1.setProPrice(19.9f);
        System.out.println(product1.getProName());
        System.out.println(product1.getProPrice());
        System.out.println(product1);
        System.out.println(product1.toString());


        Product product2 = new Product(1,"鼠标",98.7f);
        System.out.println(product2.getProName());
        System.out.println(product2.getProPrice());
        System.out.println(product2);
    }
}
